Block or library is not available in projects

Symptoms, if a block or a library is not available in existing projects:

  • The call of a block is highlighted as faulty within the →editors of an existing project and/or the block is not listed in the content assist of the editors at all.

  • The →library provided in the new version of Neuron Power Engineer is only available for new projects in the project explorer.

Causes:

  • The block is a user block. The object containing the user block has been created in the folder target or src-gen of the project.

  • The block is a system block that is provided in a new library of Neuron Power Engineer.

  • The project has been created in a previous version of Neuron Power Engineer but the new library is provided in a succeeding version.

Solutions so that the block or the blocks of the library can be used in an existing project:

  • If the block is a user block and you use Neuron Power Engineer version 1.109.0 or later:

    • Make sure that the folders target and src-gen of the project do not contain any objects with user blocks. If this is the case, move the blocks to a different folder of the project. 
      (info) By default, the folders target and src-gen are not displayed within the project explorer. This is how these folders are displayed within the project explorer Click  in toolbar of the project explorer and select Filters and Customization... In the dialog, uncheck target folder and src-gen folder (under Filter) and click OK.  

  • If you use Neuron Power Engineer version 1.32.0 or later:

    • Exit and restart Neuron Power Engineer.

    • If the above solution did not succeed, clean the project and refresh the view in the project explorer.

  • If you use a Neuron Power Engineer version before 1.32.0:

    • Create temporarily a new project. This project contains →linked folders in the project explorer, for instance the new library. Drag the linked folder (= the new library) from the new project into the project in which you want to use the block (see Moving resources for details). Delete the temporarily created project (removing its contents from the file system).

    • If the above solution does not succeed, switch to a new workspace. It is possible to transfer the current settings when switching the workspace. Subsequently, import the project. Then delete the original workspace (in the explorer of the operating system) during the usage of which you have detected the problem. This ensures that you do not use the original workspace by mistake again.


Symptoms if a library is not available in a new project: When the project has been created, the following message is displayed in the error log: Link to library "name" cannot be created.

Cause: The workspace that has been entered when starting Neuron Power Engineer has been created on a different workstation. This workspace has been passed on for usage on this workstation.

Solution so that the library is provided in the new project:

  1. Close Neuron Power Engineer.

  2. Restart Neuron Power Engineer and enter a new workspace.

  3. Create a new project. Or import the required project into this workspace.